import { _decorator, Component, find, Node, Sprite } from 'cc';
import { Permanent } from './Permanent';
const { ccclass, property } = _decorator;

@ccclass('weixin')
export class weixin extends Component {
    start() {
        console.log(this.node.getComponent(Sprite))
        this.node.getComponent(Sprite).spriteFrame = find('Permanent').getComponent(Permanent).WXAvatar
    }

    update(deltaTime: number) {
        
    }
}


